package temp

import (
	"background/model/back/entity"
)

type TrafficLog struct {
	RecordAt   int `gorm:"column:record_at;comment:'记录时间戳';type:int;"            json:"record_at"`
	UserId     int `gorm:"column:user_id;comment:'用户ID';type:bigint;"            json:"user_id"`
	ServerRate int `gorm:"column:server_rate;comment:'服务速率';type:smallint;"   json:"server_rate"`
	Up         int `gorm:"column:u;comment:'up';type:int;"            json:"u"`
	Down       int `gorm:"column:d;comment:'down';type:int;"            json:"d"`
}

func (c TrafficLog) TableName() string {
	return entity.ProjectPre + "log_traffic"
}
